//
//  HXDTempViewController.swift
//  weibo
//
//  Created by huxuedong on 15/12/5.
//  Copyright © 2015年 huxuedong. All rights reserved.
//

import UIKit

class HXDTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        title = "当前是第\(navigationController?.childViewControllers.count ?? 0)级控制器"
        view.backgroundColor = UIColor.whiteColor()
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", style: .Plain, target: self, action: "push")
    }
    
    @objc private func push() {
        let tempViewController = HXDTempViewController()
        navigationController?.pushViewController(tempViewController, animated: true)
    }

}
